import component from './component'

const React = {
    createElement,
    component: component
}

function createElement(tag, attrs, ...children) {
    attrs = attrs || {}
    return {
        tag,
        attrs,
        children,
        key: attrs.key || null
    }
}

export default React;